<?php
include_once SERVER_ROOT.'/Model/model.php';
class Model_mlogin extends Model {
    public function checkUser($name,$pwd) {
        if(!$name||!$pwd) return 0;
        $d_login = new Data_dmyuser();
        $user = $d_login->checkLogin($name);
        return $user;
    }
}
?>